home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / menus / mnuezx10.zip / MINSTALL.BAT < prev    next >
DOS Batch File  |  1989-11-23  |  2KB  |  74 lines

  1. echo off
  2. cls
  3. if NOT '%1' == '' goto GotSubDir
  4. echo 
  5. echo     ******************************************************************
  6. echo     *  If you did not specify a subdirectory to run this install     *
  7. echo     *  file, you have two choices... Either hit any key to continue  *
  8. echo     *  and use the default subdirectory C:\MENU-EZX or type CTRL-C   *
  9. echo     *  or CTRL-BREAK to terminate and re-run MINSTALL.BAT.  Be sure  *
  10. echo     *  to specify a subdirectory of your choice.  That subdirectory  *
  11. echo     *  will then be used by MENU-EZX as the default subdirectory.    *
  12. echo     ******************************************************************
  13. echo 
  14. pause
  15. cls
  16. :GotSubDir
  17. if '%1' == '' a:minstall c:\menu-ezx c:
  18. echo 
  19. echo     *** Installing Menu-EZX files to %1 ***
  20. if exist %1\*.* goto CheckCom
  21. md %1
  22. echo 
  23. echo     *** Copying Menu-EZX.COM to %1 ***
  24. copy a:menu-ezx.com %1
  25. echo 
  26. echo     *** Copying Menu-EZX.MNU to %1 *** 
  27. copy a:menu-ezx.mnu %1
  28. echo 
  29. echo     *** Copying Sample.MNU to %1 *** 
  30. copy a:sample.mnu %1
  31. echo 
  32. echo     *** Copying Menu-EZX.DOC to %1 *** 
  33. copy a:menu-ezx.doc %1
  34. echo 
  35. echo     *** Copying M-EZX.BAT to %1 *** 
  36. copy a:m-ezx.bat %1
  37. goto TheEnd
  38. :CheckCom
  39. if exist %1\menu-ezx.com goto CheckMenu
  40. echo 
  41. echo     *** Copying Menu-EZX.COM to %1 *** 
  42. copy a:menu-ezx.com %1
  43. :CheckMenu
  44. if exist %1\menu-ezx.mnu goto ChkSample
  45. echo 
  46. echo     *** Copying Menu-EZX.MNU to %1 *** 
  47. copy a:menu-ezx.mnu %1
  48. :ChkSample
  49. if exist %1\sample.mnu goto CheckDoc
  50. echo 
  51. echo     *** Copying Sample.MNU to %1 *** 
  52. copy a:sample.mnu %1
  53. :CheckDoc
  54. if exist %1\menu-ezx.doc goto CheckBat
  55. echo 
  56. echo     *** Copying Menu-EZX.DOC to %1 *** 
  57. copy a:menu-ezx.doc %1
  58. :CheckBat
  59. if exist %1\m-ezx.bat goto TheEnd
  60. echo 
  61. echo     *** Copying M-EZX.BAT to %1 *** 
  62. copy a:m-ezx.bat %1
  63. :TheEnd
  64. echo 
  65. echo  **************************************************************************
  66. echo  *       Installation completed.  To run Menu-EZX, type
  67. echo  *       M-EZX /p=%1 and depress the [ENTER] key.
  68. echo  **************************************************************************
  69. echo 
  70. pause
  71. %2
  72. cd %1
  73. rem cls
  74. exit